angular.module('charityDonate.controller', []).controller('donateController', ['$scope', '$state', function ($scope, $state) {
    $scope.donateProjects = [{
        id: '456',
        name: '共产党员献爱心',
        state: 'charityDonation.love'
    }, {
        id: '5',
        name: '临时救助',
        state: 'charityDonation.help'
    }, {
        id: '6',
        name: '大病救助',
        state: 'charityDonation.illness'
    }];
    $scope.navClicked = function (path) {
        $scope.currentItem = path;
        console.log(path);
        $state.go(path);
    }
    $scope.navClicked('charityDonation.love');
}]);